package com.lala.commom.remote;

import com.github.pagehelper.PageInfo;
import com.lala.commom.pojo.Books;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

public interface BooksRemote {
    @RequestMapping("/selectBooks")
    PageInfo<Books> selectBooks(@RequestParam("pageNum") int pageNum, @RequestParam("pageSize") int pageSize);

    @RequestMapping("/updateBooksTy")
    int updateBooksTy(@RequestParam("id") Integer id);

    @RequestMapping("/updateBooksBty")
    int updateBooksBty(@RequestParam("id") Integer id);

    @RequestMapping("/select")
    PageInfo<Books> select(@RequestParam("p")int p,@RequestParam("s")int s,@RequestParam("c")int c,@RequestParam("g") int g);

    @RequestMapping("/selectById")
    Books selectById(@RequestParam("id") int id);

    @RequestMapping("/maishu")
    int maishu(@RequestBody Books books);
}
